<!--
 * @Author: Ceoifung
 * @Date: 2023-11-06 11:48:32
 * @LastEditors: Ceoifung
 * @LastEditTime: 2024-03-27 17:55:55
 * @Description: XiaoRGEEK All Rights Reserved. Copyright © 2023
-->
<!DOCTYPE html>
<html>

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <link rel="shortcut icon"
        href="https://cdn.shopifycdn.net/s/files/1/0144/3568/0342/files/logo_c453a353-f3e6-4173-aea4-7ab3848a0d8e_96x96.jpg">
</head>

<body>
    <!-- 顶部状态栏 -->
    <div class="header-bar-title">
        <table style="width: 100%;">
            <td style="width:50%;text-align:right"> <a href="http://xiaorgeek.net" target="_blank"><img
                        src="https://cdn.shopifycdn.net/s/files/1/0144/3568/0342/files/logopng_1_255x@2x.png?v=1669193355"
                        alt="" /></a></td>
            <td style="width: 50%;;text-align:left">
                <h1> Software Download Center</h1>
            </td>
        </table>
    </div>
    <div class="container">
<!-- 软件填充页面 -->
    </div>
    <!-- 底部状态栏 -->
    <div class="footer-bar">Copyright © 2023. <a href="http://xiaorgeek.net" target="_blank">XiaoRGEEK</a> All
        Rights Reserved. Powered by <a href="https://github.com/ceoifung" target="_blank">Ceoifung</a>
    </div>
    <script>
        function addSoftware(logoSrc, name, version, description, downloadLinks, isTwoBtn, btnNames) {
            var container = document.querySelector('.container');
            var software = document.createElement('div');
            software.className = 'software';
            software.innerHTML = isTwoBtn ? `
                <img class="logo" src="${logoSrc}" alt="Software Logo">
                <div class="software-info">
                    <div class="software-name">${name} <span class="version-info">${version}</span></div>
                    <div class="software-description">${description}</div>
                </div>
                <div class="download-buttons">
                    <a class="download-button"
                    href="${downloadLinks[0]}">${btnNames[0]}</a>
                    <a class="download-button"
                    href="${downloadLinks[1]}">${btnNames[1]}</a>
                </div>`
                : `
                <img class="logo" src="${logoSrc}" alt="Software Logo">
                <div class="software-info">
                    <div class="software-name">${name} <span class="version-info">${version}</span></div>
                    <div class="software-description">${description}</div>
                </div>
                <div sytle="width:110px">
                    <a class="download-button"
                    href="${downloadLinks[0]}">${btnNames[0]}</a>
                </div>
              
            `;
            container.appendChild(software);
        }
        var softwareObj = [
            {
                logoSrc: 'https://www.xiaorgeek.com/Software/logo/xrcontroller.png',
                name: 'XR-Controller for Android',
                version: "v1.4.132",
                desc: "support X-series、Jetbot V2.0、DonkeyCar and Bionic robots",
                link: [
                    "./software/android/XR-Controller V1.4.132.231206.18e9b63.apk",
                ],
                isTwoBtn: false,
                btnNames: ['Download']
            },
            {
                logoSrc: 'https://www.xiaorgeek.com/Software/logo/xrcontroller.png',
                name: 'Corgi for iOS',
                version: "v1.2.0",
                desc: "support Bionic robots like hexapod、corgi dog.This is part of the iOS implementation of the xr-controller",
                link: ["./software/image/xr-controller_IOS.png"],
                isTwoBtn: false,
                btnNames: ['QRCode']
            },
            {
                logoSrc: 'https://www.xiaorgeek.com/Software/logo/rosslam.png',
                name: 'ROSXRMobile for Android',
                version: "v1.6.71",
                desc: "support jetson nano、raspberry pi and sunrise ros series robot. Software is only android support",
                link: ["./software/android/ROSXRMobile V1.6.71.230508.97a7d55.apk"],
                isTwoBtn: false,
                btnNames: ['Download']

            },
            {
                logoSrc: './software/image/ros2mobile.png',
                name: 'ROS2Mobile for Android',
                version: "v1.0.20 arm64",
                desc: "A ROS2 Android App",
                link: ["./software/android/ROS2Mobile_V1.0.20.240312.ee1d8af.apk"],
                isTwoBtn: false,
                btnNames: ['Download']

            },
            {
                logoSrc: 'https://www.xiaorgeek.com/Software/logo/wifirobot.jpg',
                name: 'WifiRobot for iOS/Android',
                version: "v2.37",
                desc: "Wireless Robot Car. <strong>Android software no longer maintained, use xr-controller ASAP.</strong>",
                link: ["https://www.xiaorgeek.com/Software/WiFiRobot_V2.37.apk",
                    "https://www.xiaorgeek.com/Software/XiaoRGEEK_iOS_For_DS_GFS_TH.jpg"],
                isTwoBtn: true,
                btnNames: ["Android", "iOS"]

            },
            {
                logoSrc: 'https://www.xiaorgeek.com/Software/logo/wifirobot_pc.jpg',
                name: 'WifiRobot for Window',
                version: "v1.2.7",
                desc: "support win7、win8、win10 and win11.Suitable for most products, please contact customer service for details",
                link: ["https://www.xiaorgeek.com/Software/XiaoRGEEK_PC_For_DS_GFS_TH.zip"],
                isTwoBtn: false,
                btnNames: ["Download"]
            },
            {
                logoSrc: 'https://www.xiaorgeek.com/Software/logo/donkeycar.png',
                name: 'XR-DonkeyCar for Android',
                version: "v1.6",
                desc: "only android support. <strong>No longer maintained, use xr-controller ASAP.",
                link: ["https://www.xiaorgeek.com/Software/XiaoRGEEK_Donkeycar_Android.apk"],
                isTwoBtn: false,
                btnNames: ["Download"]
            },
            {
                logoSrc: 'https://www.xiaorgeek.com/Software/logo/wulibot.png',
                name: 'WuliBot for Android',
                version: "v1.1",
                desc: "support wulibot robot",
                link: ["https://www.xiaorgeek.com/Software/WuLiBot.apk"],
                isTwoBtn: false,
                btnNames: ["Download"]
            },
            {
                logoSrc: 'https://www.xiaorgeek.com/Software/logo/microbit.png',
                name: 'XRBitCar for iOS/Android',
                version: "v3.2.1",
                desc: "Micro:bit Robot Control and programming APP",
                link: ["https://www.xiaorgeek.com/Software/XiaoRGEEK_Microbit_Android.apk",
                    "./software/image/xrbitcar-ios.png"],
                isTwoBtn: true,
                btnNames: ["Android", "iOS"]
            },
            {
                logoSrc: 'https://www.xiaorgeek.com/Software/logo/hexapod.png',
                name: 'Hexapod For PC',
                version: "v1.0.2",
                desc: "Hexapod for Window. The software provides a simulation system but is no longer maintained",
                link: ["https://www.xiaorgeek.com/Software/hexapod-1.0.2.zip"],
                isTwoBtn: false,
                btnNames: ["Download"]
            },
            {
                logoSrc: './software/image/smart-arm.png',
                name: 'AI Robotic-Arm Software',
                version: "v1.0.5",
                desc: "A software for AI Robotic-Arm serial product. Support win all and macOS",
                link: ["./software/pc/smart-arm Setup 1.0.8.exe", "./software/pc/smart-arm-1.0.5.dmg"],
                isTwoBtn: true,
                btnNames: ["Windows", "macOS"]
            },
        ];
        for (var i = 0, len = softwareObj.length; i < len; i++) {
            addSoftware(softwareObj[i].logoSrc, softwareObj[i].name, softwareObj[i].version, softwareObj[i].desc,
                softwareObj[i].link, softwareObj[i].isTwoBtn, softwareObj[i].btnNames);
        }
    </script>
</body>

</html>